let initialState = {
  listData: {
    list: [],
    total: 0,
    baseMap: {},
  },
  listLoading: false,
};

const schedule = (state = initialState, action) => {
  switch (action.type) {
    case 'TOGGLE_LIST_LOADING':
      return { ...state, listLoading: action.payload };
    case 'GET_SCHEDULE_LISTDATA_INFO':
      return { ...state, listData: action.payload };
    default:
      return state;
  }
};

export default schedule;
